SVG2PS=rsvg-convert -f ps
PS2EPS=ps2epsi
SVG=$(wildcard *.svg)
EPS=$(patsubst %.svg,%.eps, $(SVG) )
PS2PDF=ps2pdf
TEX=latex

ALL: safe-array.pdf

%.pdf: %.ps
	$(PS2PDF) $< $@
%.ps: %.svg	
	$(SVG2PS) -o $@ $<
%.eps: %.ps
	$(PS2EPS) $< $@
%.ps: %.dvi
	dvips $<
%.dvi: %.tex
	$(TEX) $<
	$(TEX) $<
	$(TEX) $<

safe-array.pdf: $(EPS)

clean:
	${RM} *.eps *.ps *.pdf *.aux *.log 
